// pages/manage/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    teacherNo:'',
    teacherName:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad() {
    const userID = wx.getStorageSync('userID');
    const teacherNo = wx.getStorageSync('teacherNo');
    const teacherName = wx.getStorageSync('teacherName');
    this.setData({
      teacherNo:teacherNo,
      teacherName:teacherName
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
    if (typeof this.getTabBar === 'function' && this.getTabBar()) {
      this.getTabBar().setData({
        selected: 0
      });
    }
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  },
  onMapClick(){
    wx.navigateTo({
      url: '/pages/studentInfo/studentInfo/studentInfo', // 假设回复页面路径
    });
  },
  onMapClick1(){
    wx.navigateTo({
      url: '/pages/studentInfo/techerInfo/techerInfo', // 假设回复页面路径
    });
  },
  onCampusCardClick(){
    wx.navigateTo({
      url: '/pages/studentInfo/course/course', 
    });
  },
  onCampusCardClick1(){
    wx.navigateTo({
      url: '/pages/studentInfo/courseSet/courseSet',
    });
  },
  toCouresSet(){
    wx.navigateTo({
      url: '/pages/studentInfo/courseRealSet/courseRealSet', // 假设回复页面路径
    });
  },
  toCouresResult(){
    wx.navigateTo({
      url: '/pages/studentInfo/courseResult/courseResult', // 假设回复页面路径
    });
  },
  scoreStatistics(){
    wx.navigateTo({
      url: '/pages/manage_score_statistics/index',
    });
  },
  onScoreClick(){
    wx.navigateTo({
      url: '/pages/manage_score/index',
    });
  },
  
})